<?php

use Illuminate\Database\Seeder;

class DatabaseSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        // $this->call(UsersTableSeeder::class);
    	$times = date('Y-m-d H:i:s');
         for ($i=0; $i<10; $i++) {
          DB::table("products")->insert([
            'name' =>  str_random(6) ,        
            'price' =>  rand(50,100), 
            'created_at' =>$times ,
            'updated_at' =>$times ,
          ]);
        }
    }
}
